<?php

class user
{
	public $id = 0;
	public $username = '';
	public $email = '';
	public $name = '';
	public $role = 0;
	public $guest = 1;

	
	public function is_customer()
	{
		return $this->role & USER_ROLE_CUSTOMER;
	}

	public function is_developer()
	{
		return $this->role & USER_ROLE_DEVELOPER;
	}

	public function is_artist()
	{
		return $this->role & USER_ROLE_ARTIST;
	}

	public function is_admin()
	{
		return $this->role & USER_ROLE_ADMIN;
	}

}
